import sys

a, b = 0, 1
while a < 100:
    # 方法一:
    # print(a, end=" ", file = sys.stdout)
    # 方法二:
    print(a, end=" ", flush=True)
    a, b = b, a + b
